package com.zq.designpaterns.structure.bridge;

/**
 * ================================================
 * 作    者：程志强
 * 邮    箱：cheng.zhiqiang@cesgroup.com.cn
 * 版    本：1.0.0
 * 创建日期：2021/01/12  10:19
 * 修改日期：
 * 描    述：
 * 修订历史：
 * ================================================
 */
public class Circle extends Shape {
    private final int radius;
    private final int x;
    private final int y;

    public Circle(DrawAPI drawAPI, int radius, int x, int y) {
        super(drawAPI);
        this.radius = radius;
        this.x = x;
        this.y = y;
    }

    @Override
    public void draw() {
        drawAPI.drawCircle(radius, x, y);
    }
}
